/**
 * 生产厂家 下拉菜单
 * @param nowSelectId
 * @param url
 * chenliang
 */
function manuFactorComboBox(nowSelectId, url){
	$(nowSelectId).combobox({
		url: url,
		panelHeight: '120',
		valueField:'factory_code',
		textField:'factory_name',
		filter: function(q, row){
		    var opts = $(this).combobox('options');
		    var r = false ;
		    if(row['code']){
		    	r = row[opts.textField].indexOf(q) >= 0 || 
		    		row[opts.valueField].indexOf(q) >= 0 || 
		    		row[opts.valueField].indexOf(q.toUpperCase()) >= 0;
		    }else{
		    	r = row[opts.textField].indexOf(q) >= 0 || 
		    		row[opts.valueField].indexOf(q) >= 0 ;
		    }
		    return r;
		},
		onSelect: function(rec){
		}
	});
}
